<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>工程签单审批详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../resources/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../resources/css/style.css" media="all">
    <style>
        .details li{width: 50%;float: left;}
        .layui-table thead th{text-align: left;}
        .engineering_c{margin-top: 10px;}
        .engineering_c li{width: 100%;}
        .shenheBtn{float: right; margin-top: 10px;}
        .s_hide{margin-top: 10px;}
        .layui-select-title input{width: 100%;margin-bottom: 10px;margin-top: 10px;}
        .layui-input{width: 100%;}
        .layui-form-pane .layui-form-label{width: 100px;}
        .layui-form-select{width: 100%;}
    </style>
</head>
<body>
<button class="layui-btn" onclick="history.back(-1);"><i class="layui-icon"></i></button>
<div class="shenpiSeeS"></div>
<form class="layui-form layui-form-pane shenpiSee" action="" >

</form>


<script src="../../../resources/layui/layui.js" charset="utf-8"></script>
<script src="../../../resources/js/style.js"></script>
<script src="../../../resources/js/api.js"></script>
<script>

    //详情页 暂无数据  接的假接口   渲染需注意;

    layui.use(['form', 'layedit', 'laydate','table'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,table=layui.table
            ,laydate = layui.laydate;
        var transmit=new Object();      //接受数据传递  发送ajax需调用

        if(sessionStorage.stear=='detail'){
            $('.shenpiSee').hide();
            $('.shent').hide();
        }else{
            $('.shenpiSee').show();
            $('.shent').show();
        }


        $('.shenpiSee').attr('action',urls+'/api/contract/conVali.do');

        ajaxs('/api/contract/conValiDetails.do','post',{'uuid':sessionStorage.shenpiUID,'p':getCookie('yanzheng')},function (datas) {
            //console.log(datas)
            transmit=datas;
            if(datas.code=='0'){
                var data=datas.data[0][0]
                var gongchenggaikuo='';             //接收字符串拼接
                $('.cishu').val(datas.data[3][0].cc_ValiNum);       //接受审核次数

                for(var i=0;i<datas.data[1].length;i++){
                    gongchenggaikuo+=datas.data[1][i].cc_key+':'+datas.data[1][i].cc_value+'&nbsp&nbsp&nbsp&nbsp';//字符串拼接  传递数据
                }
                $('.shenpiSeeS').append(' <div class="engineering"><!--工程信息-->\n' +
                    '        <div class="titles">编号:<span>'+data.cc_Code+'</span></div>\n' +
                    '        <div     class="details">\n' +
                    '            <ul>\n' +
                    '                <li><span class=\'detaL\'>工程名称：</span><span class="dataR"> '+data.eppName+' </span></li>\n' +
                    '                <li><span class=\'detaL\'>审核状态：</span><span class="dataR">'+data.preStaTime+'</span></li>\n' +
                    '                <li><span class=\'detaL\'>申请单位：</span><span class="dataR">'+data.eppStaEnd+'</span></li>\n' +
                    '                <li><span class=\'detaL\'>审核意见：</span><span class="dataR">'+data.preEndTime+'</span></li>\n' +
                    '                <li><span class=\'detaL\'>时间：</span><span class="dataR">'+data.compJs+'</span></li>\n' +
                    '                <li><span class=\'detaL\'>审核人：</span><span class="dataR">'+data.compName0+'</span></li>\n' +
                    '                <li><span class=\'detaL\'>签证人 ：</span><span class="dataR">'+data.compName1+'</span></li>\n' +
                    '                <li><span class=\'detaL\'>签证内容：</span><span class="dataR">'+data.compPerson0+'</span></li>\n' +
                    '                <li style="width: 100%;"><span class=\'detaL\'>现场图：</span><span class="dataR">'+data.compPerson1+'</span></li>\n' +
                    '            </ul>\n' +
                    '        </div>\n' +
                    '    </div>');

            }else{
                layer.msg('获取失败 请重新尝试')

            }
        })




    })

</script>
</body>
</html>